package com.ruoyi.kucun.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品基础信息对象 product
 * 
 * @author Rosou
 * @date 2025-06-17
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    private Long productId;

    /** 商品编号（如SP001） */
    @Excel(name = "商品编号", readConverterExp = "如=SP001")
    private String productNo;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品类别 */
    @Excel(name = "商品类别")
    private String category;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String unit;

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setProductNo(String productNo) 
    {
        this.productNo = productNo;
    }

    public String getProductNo() 
    {
        return productNo;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("productNo", getProductNo())
            .append("name", getName())
            .append("category", getCategory())
            .append("unit", getUnit())
            .toString();
    }
}
